package com.ruoyi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 设备表 hl_machine
 * 
 * @author ruoyi
 * @date 2018-12-23
 */
public class Machine extends BaseEntity
{
private static final long serialVersionUID = 1L;
	
	/** ID */
	private Integer id;
	/** 设备名称 */
	private String name;
	/** 设备编号 */
	private String code;
	/** 设备来源 */
	private Integer source;
	/** 关联用户 */
	private Integer userId;
	/** 昵称 */
	private String nickName;
	/** 性别(0-男，1-女) */
	private Integer sex;
	/** 出生日期 */
	private Date birthday;
	/** 联系号码 */
	private String phone;
	/** 血压值 */
	private String bloodVal;
	/** 目标步数 */
	private Integer stepGoal;
	/** 睡眠指标（分钟） */
	private Integer sleepGoal;
	/** 身高（CM） */
	private Integer height;
	/** 体重（KG） */
	private Integer weight;
	/** 血型 */
	private String bloodType;
	/** 病史 */
	private String medicalHistory;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setSource(Integer source) 
	{
		this.source = source;
	}

	public Integer getSource() 
	{
		return source;
	}
	public void setUserId(Integer userId) 
	{
		this.userId = userId;
	}

	public Integer getUserId() 
	{
		return userId;
	}
	public void setNickName(String nickName) 
	{
		this.nickName = nickName;
	}

	public String getNickName() 
	{
		return nickName;
	}
	public void setSex(Integer sex) 
	{
		this.sex = sex;
	}

	public Integer getSex() 
	{
		return sex;
	}
	public void setBirthday(Date birthday) 
	{
		this.birthday = birthday;
	}

	public Date getBirthday() 
	{
		return birthday;
	}
	public void setBloodVal(String bloodVal) 
	{
		this.bloodVal = bloodVal;
	}

	public String getBloodVal() 
	{
		return bloodVal;
	}
	public void setStepGoal(Integer stepGoal) 
	{
		this.stepGoal = stepGoal;
	}

	public Integer getStepGoal() 
	{
		return stepGoal;
	}
	public void setSleepGoal(Integer sleepGoal) 
	{
		this.sleepGoal = sleepGoal;
	}

	public Integer getSleepGoal() 
	{
		return sleepGoal;
	}
	public void setHeight(Integer height) 
	{
		this.height = height;
	}

	public Integer getHeight() 
	{
		return height;
	}
	public void setWeight(Integer weight) 
	{
		this.weight = weight;
	}

	public Integer getWeight() 
	{
		return weight;
	}
	public void setBloodType(String bloodType) 
	{
		this.bloodType = bloodType;
	}

	public String getBloodType() 
	{
		return bloodType;
	}
	public void setMedicalHistory(String medicalHistory) 
	{
		this.medicalHistory = medicalHistory;
	}

	public String getMedicalHistory() 
	{
		return medicalHistory;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	
    public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("source", getSource())
            .append("userId", getUserId())
            .append("nickName", getNickName())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("bloodVal", getBloodVal())
            .append("stepGoal", getStepGoal())
            .append("sleepGoal", getSleepGoal())
            .append("height", getHeight())
            .append("weight", getWeight())
            .append("bloodType", getBloodType())
            .append("medicalHistory", getMedicalHistory())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
